package mx.uam.ayd.citas;

//import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JFrame;
//import java.awt.Dimension;
import javax.swing.JLabel;
import java.awt.Rectangle;
//import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Point;
import javax.swing.SwingConstants;

public class VentanaPrincipalCitas extends JFrame {

    private static final long serialVersionUID = 1L;
    private JPanel jContentPane = null;
    private JLabel Nombre = null;
    private JButton jButton = null;
    private JButton jButton3 = null;
    private JButton jButton4 = null;
    private JButton jButton5 = null;

    /**
     * This is the default constructor
     */
    public VentanaPrincipalCitas() {
        super();
        initialize();

    }

    /**
     * This method initializes this
     *
     * @return void
     */
    private void initialize() {
        this.setSize(529, 415);
        this.setContentPane(getJContentPane());
        this.setTitle("JFrame");
    }

    /**
     * This method initializes jContentPane
     *
     * @return javax.swing.JPanel
     */
    private JPanel getJContentPane() {
        if (jContentPane == null) {
            Nombre = new JLabel();
            Nombre.setBounds(new Rectangle(13, 20, 477, 46));
            Nombre.setName("");
            Nombre.setFont(new Font("Wide Latin", Font.BOLD, 24));
            Nombre.setBackground(Color.cyan);
            Nombre.setHorizontalTextPosition(SwingConstants.CENTER);
            Nombre.setHorizontalAlignment(SwingConstants.CENTER);
            Nombre.setText("Ventana de Citas");
            jContentPane = new JPanel();
            jContentPane.setLayout(null);
            jContentPane.setName("Nombre");
            jContentPane.add(Nombre, null);
            jContentPane.add(getJButton(), null);
            jContentPane.add(getJButton3(), null);
            jContentPane.add(getJButton4(), null);
            jContentPane.add(getJButton5(), null);
        }
        return jContentPane;
    }

    /**
     * This method initializes jButton
     *
     * @return javax.swing.JButton
     */
    private JButton getJButton() {
        if (jButton == null) {
            jButton = new JButton();
            jButton.setBounds(new Rectangle(165, 76, 164, 65));
            jButton.setActionCommand("PACIENTES");
            jButton.setText("Alta de Cita");
            jButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent e) {
                    System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
                	//control.agregarLibro();
                }
            });
        }
        return jButton;
    }

    /**
     * This method initializes jButton3
     *
     * @return javax.swing.JButton
     */
    private JButton getJButton3() {
        if (jButton3 == null) {
            jButton3 = new JButton();
            jButton3.setText("Baja de cita");
            jButton3.setSize(new Dimension(164, 65));
            jButton3.setLocation(new Point(165, 162));
            jButton3.addActionListener(new java.awt.event.ActionListener() {
            	public void actionPerformed(java.awt.event.ActionEvent e) {
            		//control.eliminarLibro();
            	}
            });
        }
        return jButton3;
    }

    /**
     * This method initializes jButton4
     *
     * @return javax.swing.JButton
     */
    private JButton getJButton4() {
        if (jButton4 == null) {
            jButton4 = new JButton();
            jButton4.setText("Modificacion de citas");
            jButton4.setSize(new Dimension(164, 65));
            jButton4.setLocation(new Point(165, 249));
            jButton4.addActionListener(new java.awt.event.ActionListener() {
            	public void actionPerformed(java.awt.event.ActionEvent e) {
            		//System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
            		//control.despliegaLibro();
            	}
            });
        }
        return jButton4;
    }

    /**
     * This method initializes jButton5
     *
     * @return javax.swing.JButton
     */
    private JButton getJButton5() {
        if (jButton5 == null) {
            jButton5 = new JButton();
            jButton5.setText("Regresar");
            jButton5.setSize(new Dimension(121, 31));
            jButton5.setLocation(new Point(184, 330));
            jButton5.addActionListener(new java.awt.event.ActionListener() {
            	public void actionPerformed(java.awt.event.ActionEvent e) {
            		System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
            	}
            });
            jButton5.addActionListener(new java.awt.event.ActionListener() {
            	public void actionPerformed(java.awt.event.ActionEvent e) {
            		//System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
            		System.exit(1);
            	}
            });
        }
        return jButton5;
    }

}  //  @jve:decl-index=0:visual-constraint="10,10"
